package com.coffee.order.api.sku.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.sku.query.SkuOrderDeliveryDemandQuery;
import com.coffee.order.api.sku.result.SkuOrderDeliveryDemandResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SkuOrderDeliveryDemandService {

	Page<SkuOrderDeliveryDemandResult> getPager(SkuOrderDeliveryDemandQuery param, PagerInfo pr);
	
	Integer count(SkuOrderDeliveryDemandQuery param);
	
	SkuOrderDeliveryDemandResult getDetail(Integer id);
	
	List<SkuOrderDeliveryDemandResult> getList(SkuOrderDeliveryDemandQuery param, PagerInfo pr);
	
	List<SkuOrderDeliveryDemandResult> getList(SkuOrderDeliveryDemandQuery param);
	
	List<SkuOrderDeliveryDemandResult> getList();

	void delete(Integer id);

	void addOrUpdate(SkuOrderDeliveryDemandResult result)throws BusinessException;
	
	Map<Integer,SkuOrderDeliveryDemandResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SkuOrderDeliveryDemandResult> getItemMap();
	
}